const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  transpileDependencies: true,
  runtimeCompiler: true,
  lintOnSave: false,
  // 配置代理
   devServer: {
	  proxy: {
		'/api': {
		  target: 'http://localhost:3000',
		  changeOrigin: true,
		  pathRewrite: {
			'^/api': ''
		  }
		}
	  }
	},
	 // css全局引入样式
	css: {
	    loaderOptions: {
	      sass: {
	        data: `@import "@/scss/index.scss";`
	      }
	    }
	}
})
